package cn.iune.platform.dictionary;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class DictionaryServiceImpl implements IDictionaryService {
	
	@Autowired
	private IExpressInfoService expressInfoService;

	//spring事务管理测试
	@Transactional
	public void springTransactionalTest(){
		ExpressInfo expressInfo = new ExpressInfo();
		expressInfo.setfID("1");
		expressInfo.setExpressCode("1");
		expressInfo.setVersion(0);
		expressInfoService.insert(expressInfo);
		expressInfo = new ExpressInfo();
		expressInfo.setfID("2");
		expressInfo.setExpressCode("2");
		expressInfo.setVersion(0);
		expressInfoService.insert(expressInfo);
		
//		SettleInfo settleInfo = new SettleInfo();
//		settleInfo.setfID("1");
//		settleInfo.setSettleCode("1");
//		settleInfo.setVersion(0);
//		settleInfoService.insert(settleInfo);
//		settleInfo = new SettleInfo();
//		settleInfo.setfID("1");
//		settleInfo.setSettleCode("1");
//		settleInfo.setVersion(0);
//		settleInfoService.insert(settleInfo);
	}
}
